
import Vue from 'vue'
// import { ONL_AUTH_FIELDS } from "@/store/mutation-types"
// import { getAction } from '@/api/manage'


const websocketStore = {
    state: {
        //存储对象属性 value,text
        webSocketMsg: '',
         webSocketConnect: false,
    },
    mutations: {
      // 存储socket推送消息
        SET_WS_MSG(state, msg) {  
            state.webSocketMsg = msg
        },
        //设置socket链接状态
        SET_WS_CONNECT(state, msg) {
            state.webSocketConnect = msg
        }
    },

}

export default websocketStore